package com.xtiim.battery.discharge.event;

import java.util.List;

public interface EventMulticaster {

    /**
     * Register the event and event listener
     *
     * @param eventClazz
     * @param listener
     */
    void register(Class<?> eventClazz, ApplicationListener listener);

    /**
     * Get the list of listeners corresponding to the given event class
     *
     * @param eventClazz
     * @return
     */
    List<ApplicationListener> getListeners(Class<?> eventClazz);
}
